<%@ page import="com.workmanager.bean.StudentBean" %>
<%@ page import="com.workmanager.bean.TeacherBean" %><%--
  Created by IntelliJ IDEA.
  User: haocongshun
  Date: 2016/8/13
  Time: 21:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String ctxpath = request.getContextPath();
%>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    <!-- jqueryUI-->
    <script src="<%=ctxpath%>/static/bootstrap-3.3.5-dist/js/jquery.min.js"></script>
    <script src="<%=ctxpath%>/static/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
    <link href="<%=ctxpath%>/static/numjs/wan-spinner.css" rel="stylesheet">
    <script src="<%=ctxpath%>/static/numjs/wan-spinner.js"></script>
    <link href="<%=ctxpath%>/static/jquery-ui-bootstrap/css/custom-theme/jquery-ui-1.10.0.custom.css" rel="stylesheet">
    <script src="<%=ctxpath%>/static/jquery-ui-bootstrap/js/jquery-ui-1.9.2.custom.min.js"></script>
    <!-- Bootstrap css -->
    <link href="<%=ctxpath%>/static/bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- kendo ui css -->
    <link href="<%=ctxpath%>/static/kendoui/content/Content/kendo/2015.2.624/kendo.common.min.css" rel="stylesheet">
    <link href="<%=ctxpath%>/static/kendoui/content/Content/kendo/2015.2.624/kendo.default.min.css" rel="stylesheet">
    <!-- font-awesome -->
    <link href="<%=ctxpath%>/static/v3/font-awesome.css" rel="stylesheet">
    <link href="<%=ctxpath%>/static/v3/bk.css" rel="stylesheet">
    <link href="<%=ctxpath%>/static/bootstrap-3.3.5-dist/css/button.css" rel="stylesheet">
    <script src="<%=ctxpath%>/static/kendoui/content/Scripts/kendo/2015.2.624/kendo.all.min.js"></script>
    <!-- 数据埋点统计 -->
    <script src="<%=ctxpath%>/static/v3/analysis.js"></script>
    <!-- 以下两个插件用于在IE8以及以下版本浏览器支持HTML5元素和媒体查询，如果不需要用可以移除 -->
    <!--[if lt IE 9]><script src="<%=ctxpath%>/static/v3/html5shiv.min.js"></script><script src="<%=ctxpath%>/static/v3/respond.min.js"></script><![endif]-->
    <script>
        $(function () {
            $("#headNav li").removeClass("active");
        });
    </script>
</head>
<body class="bg-bright1">
<div class="king-page-box m0">
    <div class="king-layout1-header">
        <div class="ui-ui" style="position: relative; z-index: 0;">
            <nav class="m0 p0">
                <div class="navbar king-horizontal-nav1" id="nav1_demo1" style="overflow:hidden;">
                    <div class="navbar-container">
                        <div class="navbar-header pull-left">
                            <a class="navbar-brand" href="javascript:;">
                                <span class="logo">作业管理系统</span>
                            </a>
                        </div>
                        <%
                            StudentBean stu = (StudentBean) request.getSession().getAttribute("学生");
                            TeacherBean tea = (TeacherBean) request.getSession().getAttribute("教师");
                            if(stu==null&&tea==null){
                                response.sendRedirect(request.getContextPath()+"/login/login1.jsp");
                            }else {
                        %>
                        <ul id="headNav" class="nav navbar-nav pull-left m0">
                            <li class="active" ><a href="<%=ctxpath%>/<%=(stu==null?"StudentWorkController/homePage.wm?flag=tea":"StudentWorkController/homePage.wm?flag=stu")%>">个人中心</a></li>
                            <li class="a"><a href="<%=ctxpath%>/<%=(stu==null?"teacher":"student")%>/message.jsp">我的消息</a></li>
                            <li class="a"><a href="<%=ctxpath%>/talk/seeLeaveMessage.jsp?<%=(stu==null?"tea":"stu")%>">我的留言</a></li>
                        </ul>
                        <div class="navbar-header pull-right">
                            <ul class="nav">
                                <li class="user-info">
                                    <a href="javascript:;">
                                        <img class="img-rounded" src="<%=ctxpath%>/media/img/headimg/avatar.png">
                                        <span>
                                                <span style="color: orange"><%=(stu==null?tea.getTeacher_name()+"老师":stu.getStudent_name()+"同学")%></span>
                                            欢迎你！
                                        </span>
                                    </a>
                                    <a style="color: coral;" href="<%=ctxpath%>/otherpage/quit.jsp">
                                        退出！
                                    </a>
                                </li>
                            </ul>
                        </div>
                        <%
                            }
                        %>
                    </div>
                </div>
            </nav>
        </div>
        <%
           if(stu!=null||tea!=null){
        %>
        <div class="ui-ui" style="position: relative; z-index: 0;">
            <div class="panel panel-default mb0">
                <div class="panel-heading">
                    <span id="toptitle" style="margin-left: 6%;font-size: 16px;font-weight: bold;">个人中心</span>
                </div>
                <div class="panel-body bg-bright1" style="height: 700px;">
                    <div class="ui-grid" style="position: relative; z-index: 0;">
                        <div class="container-fluid">
                            <div class="row">
                                <div class="col-md-2" >
                                    <div class="ui-ui" style="position: relative; z-index: 0;">
                                        <nav class="m0">
                                            <div class="king-vertical-nav6" style="height: 500px;border: 1px solid #ccc ">
                                                <%
                                                    if(stu!=null&&tea==null){

                                                %>
                                                <ul class="nav-list">
                                                    <li>
                                                        <a href="<%=ctxpath%>/information/stuinfo.wm" title="我的信息">
                                                            <i class="sidebar_icon icon_business"></i><span>我的信息</span>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="<%=ctxpath%>/student/handInWork.jsp" title="提交作业">
                                                            <i class="sidebar_icon icon_knowledge"></i><span>提交作业</span>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="<%=ctxpath%>/StudentWorkController/getMywork.wm" title="我的所有作业">
                                                            <i class="sidebar_icon icon_work"></i><span>我的所有作业</span>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="<%=ctxpath%>/student/seeGoodWork.jsp" title="查看优秀作业">
                                                            <i class="sidebar_icon icon_work"></i><span>查看优秀作业</span>
                                                        </a>
                                                    </li>
                                                </ul>
                                                <%
                                                    }else if(stu==null&&tea!=null){

                                                %>
                                                <ul class="nav-list">
                                                    <li>
                                                        <a href="<%=ctxpath%>/TeacherController/changeMessage.wm" title="我的信息">
                                                            <i class="sidebar_icon icon_business"></i><span>我的信息</span>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="<%=ctxpath%>/TeacherController/getClass.wm" title="建立和管理班级">
                                                            <i class="sidebar_icon icon_business"></i><span>建立和管理班级</span>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="<%=ctxpath%>/publishJobController/getClassList.wm" class="" title="发布作业通知">
                                                            <i class="sidebar_icon icon_knowledge"></i><span>发布作业通知</span>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="<%=ctxpath%>/teacher/receiveWork.jsp" title="接受作业">
                                                            <i class="sidebar_icon icon_data"></i><span>接收作业</span>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="<%=ctxpath%>/teacher/shareGoodJob.jsp" title="分享优秀作业">
                                                            <i class="sidebar_icon icon_devel"></i><span>分享优秀作业</span>
                                                        </a>
                                                    </li>
                                                </ul>
                                                <%
                                                    }
                                                %>
                                            </div>
                                        </nav>
                                    </div>
                                </div>
                                <div class="col-md-10">
